package com.neusoft.neuhealth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.neuhealth.domain.Role;
import com.neusoft.neuhealth.domain.User;
import com.neusoft.neuhealth.po.customer.customerresult.CustomerNoCaregiverItem;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    Long selectIdByUsername(String username);

    List<CustomerNoCaregiverItem> listcustomerItems(Long caregiverId, int pageStart, int pageSize, String customerName);
    long countCustomerItems(Long caregiverId, String customerName);

    int addCustomer(Long caregiverId, Long customerId);

    int removeCustomer(Long caregiverId, Long customerId);

    int deleteUser(String userName);

    int updateByEmail(String email, String password);

    void updateAvatar(String upload, Long userId);

    String selectAvatar(Long userId);

    void updateUserId(Long oldUserId);

    String selectEmail(Long userId);

    Long getTotalCareCount(Long userId);
}
